package com.cnunicom.modules.tra.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.temporal.ValueRange;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 就餐记录表
 *
 * @author dzygod
 * @email dingziyuan0@gmail.com
 * @date 2020-03-04 09:39:59
 */
@Data
@TableName("tra_res_record")
public class ResRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	@ApiModelProperty(value = "主键")
	private Integer id;

	@ApiModelProperty(value = "就餐方式id")
	@NotNull(message = "就餐方式不能为空")
	private Integer disId;

	@ApiModelProperty(value = "餐厅名称")
	private String resName;

	@ApiModelProperty(value = "就餐方式名称")
	private String eatName;

	@ApiModelProperty(value = "会员id")
	@NotNull(message = "会员不能为空")
	private Integer mebId;

	@ApiModelProperty(value = "会员名称")
	private String mebName;

	@ApiModelProperty(value = "价格")
	@NotNull(message = "价格不能为空")
	private BigDecimal price;

	@ApiModelProperty(value = "创建时间")
	private String createTime;

	@ApiModelProperty(value = "逻辑删除")
	@TableLogic
	private Integer isDel;

	@ApiModelProperty(value = "总价")
	@TableField(exist = false)
	private BigDecimal totalPrice;
}
